﻿--[[
   @brief    craete group dialog
   @author   rickonzhang
   @version  1.0
   @date     2015-06-23
--]]

create_group_desc = 
{
    module_name = "create_group",
    events = 
    {
        {
            lua_event = 
            {
                {
                    id = "group_event.SHOW_CREATE_GROUP_DIALOG",
                    callback = "create_group_control.show_create_group_dialog"
                },
                {
                    id = group_event.SHOW_CREATE_DISCUSSION_DIALOG,
                    callback = "create_group_control.show_create_discussion_dailog"
                }             
            },
            c_event = 
            {
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_FRIEND_LIST,
                    callback = "create_group_control.get_friendlist_done"
                },
            },
            lua_file = "social\\create_group\\control.lua"
        },
        {
            lua_event = 
            {
                {
                    id = social_event.SHOW_CREATE_GROUP_MENU,
                    callback = "create_group_menu_listener.show_menu"
                },         
            },
            lua_file = "social\\create_group\\create_group_menu.lua"
        },
        
    },
}

desc_mgr.add(create_group_desc)